import { HEADTITLE, HEADLEFT, HEADRIGHT } from '../mutation-type'

export default {
  namespaced: true, // 命名空间
  state: {
    headTitle: '首页',
    rightFlag: 'scan'
  },
  mutations: {
    [HEADTITLE] (state, payload) {
      state.headTitle = payload
    },
    [HEADLEFT] (state, payload) {
      state.leftFlag = payload
    },
    [HEADRIGHT] (state, payload) {
      state.rightFlag = payload
    }
  },
  actions: {
  }
}
